package com.sne.airways.customer.pojo;

import com.sne.airways.basecore.pojo.BaseProperties;
import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-12-22
 * Time: 下午2:08
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "TD_CUST")
@BatchSize(size = 5)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class TdCust extends BaseProperties {

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid",strategy = "uuid")
    @Column(name = "custId",length = 45)
    private String custId;

    @Column(length=100)
    private String custName;

    @Column(length=50)
    private String custRIF;

    @Column(length=100)
    private String enName;

    @Column(length=100)
    private String custCode;

    @Column(length=20)
    private String custType;

    @Column(length=20)
    private String hsCode;

    @Column(length=20)
    private String EDICode;

    @Column(length=20)
    private String phone;

    @Column(length=20)
    private String fax;

    @Column(length=20)
    private String tix;

    @Column(length=100)
    private String email;

    @Column(length=100)
    private String contract;

    @Column(length=200)
    private String address;

    @Column(length=6)
    private String level;

    @Column(length=5)
    private int limitContract;

    @Column(length=500)
    private String remark;

    @Column(length=1)
    private String status;

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getCustRIF() {
        return custRIF;
    }

    public void setCustRIF(String custRIF) {
        this.custRIF = custRIF;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getCustCode() {
        return custCode;
    }

    public void setCustCode(String custCode) {
        this.custCode = custCode;
    }

    public String getCustType() {
        return custType;
    }

    public void setCustType(String custType) {
        this.custType = custType;
    }

    public String getHsCode() {
        return hsCode;
    }

    public void setHsCode(String hsCode) {
        this.hsCode = hsCode;
    }

    public String getEDICode() {
        return EDICode;
    }

    public void setEDICode(String EDICode) {
        this.EDICode = EDICode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getTix() {
        return tix;
    }

    public void setTix(String tix) {
        this.tix = tix;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public int getLimitContract() {
        return limitContract;
    }

    public void setLimitContract(int limitContract) {
        this.limitContract = limitContract;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
